package iflyer.service;

import iflyer.dao.ProductInfoMapper;
import iflyer.model.ProductInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName ProductInfoService
 * @Author babylct
 * @Date 2018/7/20 15:06
 * @Version 1.0
 */
@Service
public class ProductInfoService {

    @Autowired
    private ProductInfoMapper productInfoMapper;

    public int deleteByPrimaryKey(Long id) {

        return productInfoMapper.deleteByPrimaryKey(id);
    }

    public int insert(ProductInfo record) {

        return productInfoMapper.insert(record);
    }

    public ProductInfo selectByPrimaryKey(Long id) {

        return productInfoMapper.selectByPrimaryKey(id);
    }

    public List<ProductInfo> findAll() {

        return productInfoMapper.findAll();
    }

}
